import * as crypto from "crypto";


export function md5(origin: string) {
	const md5 = crypto.createHash("md5");
	md5.update(origin);
	return md5.digest("hex");
}




export const wechatMPAccessTokenKey = (appid: string) => `platform:wechat:mp:accessToken:${appid}`;


export const hikvisionAccessTokenKey = (appkey: string) => `codo:platform:hikvision:isc:${appkey}`;